package com.lx.txx.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lx.txx.entity.TxxCar;
import com.lx.txx.entity.TxxComment;
import com.lx.txx.entity.TxxCommentEx;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 天下行租车-车辆表-10 Mapper 接口
 * </p>
 *
 * @author lx
 * @since 2024-12-30
 */
public interface TxxCommentMapper extends BaseMapper<TxxComment> {

    @Select("SELECT\n" +
            "	a.cname,\n" +
            "	a.headimg,\n" +
            "	b.* \n" +
            "FROM\n" +
            "	txx_user a,\n" +
            "	txx_comment b \n" +
            "WHERE\n" +
            "	a.id = b.uid \n" +
            "	AND b.cid = #{cid}")

    List<TxxCommentEx> selectByCId(String cid);
}
